import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateDemo {
	public static void main(String[] args) throws ParseException {
		String s="2014-01-01 00:00:00";
		String e = "2017-05-30 23:59:59";
		String pattern = "yyyy-MM-dd HH:mm:ss";
		SimpleDateFormat format = new SimpleDateFormat(pattern);
		System.out.println(format.parse(s).getTime()/1000);
		System.out.println(format.parse(e).getTime()/1000);
		System.out.println(Integer.MAX_VALUE);
		
		long l = 1496312002;
		
		System.out.println(format.format(new Date(l*1000)));
		System.out.println(format.format(new Date(1483686394298L)));
		
		System.out.println(Double.valueOf("000002808.00").intValue());
	}
}
